package com.ht.demo.action;

import javax.servlet.ServletRequest;

import org.apache.struts2.ServletActionContext;


import com.ht.demo.entity.Qingjia;
import com.ht.right.service.CommonFacadeService;
import com.opensymphony.xwork2.ActionSupport;

public class QingJiaAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private CommonFacadeService<Qingjia> commonFacadeService;
	private Qingjia qingjia;


	public String addQingJia(){
		ServletRequest request = ServletActionContext.getRequest();
		String rightId = request.getParameter("menuId");
		commonFacadeService.save(qingjia, rightId);
		return "success";
	}
	
	
	public Qingjia getQingjia() {
		return qingjia;
	}

	public void setQingjia(Qingjia qingjia) {
		this.qingjia = qingjia;
	}


	public CommonFacadeService<Qingjia> getCommonFacadeService() {
		return commonFacadeService;
	}
	public void setCommonFacadeService(CommonFacadeService<Qingjia> commonFacadeService) {
		this.commonFacadeService = commonFacadeService;
	}


}
